package com.sskj.lib.util;

import android.text.TextUtils;

public class HideUtil {
    // 隐藏手机号
    public static String getPhoneHide(String mobile) {
        if (TextUtils.isEmpty(mobile)) {
            return "";
        }
        try {
            return mobile.substring(0, 3) + "****" + mobile.substring(7, 11);
        } catch (Exception e) {
            return mobile;
        }
    }
}
